package designMode.decorator;

/**
 * Created by jingqing.zhou on 2015/4/21.
 */
public class Test {

    public static void main(String[] args) {
        Man man = new Man();
        DecoratorA md1 = new DecoratorA();
        DecoratorB md2 = new DecoratorB();

        md1.setPerson(man);
        md2.setPerson(md1);
        md2.eat();

    }

}
